package com.tjetc.service;

import com.tjetc.common.JsonResult;

public interface FavouriteService {

    // 添加收藏
    JsonResult addFavourite(Long folderId, Long type, Long bindId, Long userId);

    // 插入默认收藏夹
    JsonResult insertDefaultFolders(Long userId);

    // 插入新收藏夹
    JsonResult insertFolder(Long userId, String name);

    // 删除收藏夹
    JsonResult deleteFolder(Long folderId);

    // 根据收藏夹 ID 删除所有收藏项
    JsonResult deleteFavoritesByFolderId(Long folderId);

    // 删除指定收藏项
    JsonResult removeFavorite(Long folderId, Long type, Long bindId, Long userId);
    JsonResult isFavorite(Long folderId, Long type, Long bindId);

    JsonResult userFavourite(Long folderId, String name, Long userId);
}
